package com.kaijie.service.impl;

import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kaijie.dao.ReserveInfnDao;
import com.kaijie.entity.ReserveInfnEntity;
import com.kaijie.service.ReserveInfnService;
import com.kaijie.utils.PageUtils;
import com.kaijie.utils.Query;


@Service("reserveInfnService")
public class ReserveInfnServiceImpl extends ServiceImpl<ReserveInfnDao, ReserveInfnEntity> implements ReserveInfnService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ReserveInfnEntity> page = this.page(
                new Query<ReserveInfnEntity>().getPage(params),
                new QueryWrapper<ReserveInfnEntity>()
        );

        return new PageUtils(page);
    }

}
